//
//  XHCommonProblemsViewController.m
//  umibus
//
//  Created by 冷山 on 16/6/28.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import "XHCommonProblemsViewController.h"

@interface XHCommonProblemsViewController ()

@property (weak, nonatomic) IBOutlet UIWebView *ui_webView;
@end

@implementation XHCommonProblemsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.ui_webView.backgroundColor = [ColorManager colorWithHexString:@"#F8F8F8"];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self loadWebView];
}

- (void)loadWebView
{
    NSURL *url = [[NSBundle mainBundle] URLForResource:@"question" withExtension:@"htm"];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [self.ui_webView loadRequest:request];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
